<?php

trait A
{
    public $name = 'anna';
    private $age = 18;
    protected $sex = '女';
}

class User
{
    // public $name = '安娜'; // NO
    use A;
}

$u = new User();


var_dump($u);
echo $u->name;
// echo $u->sex; // NO
